package com.jsmile.cloud.tradecenter.order.model;

import java.util.List;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author 龚亮
 * @version 1.0
 * @desc 为了薪资破万，还是睡一会儿吧...!
 * @date 2020年04月28日 05:02:33
 */
@ApiModel
@Data
@TableName("t_order_discount")
public class OrderDiscount extends Model<OrderDiscount> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @ApiModelProperty(value = "平台ID")
    private Integer platformId;
    @ApiModelProperty(value = "biz_code")
    private Integer bizCode;
    @ApiModelProperty(value = "订单编号")
    private Long orderNo;
    @ApiModelProperty(value = "折扣对应类型,1优惠券,2活动,3拼团,4会员积分")
    private Integer discountType;
    @ApiModelProperty(value = "业务id")
    private String discountBizId;
    @ApiModelProperty(value = "业务名称")
    private String discountBizName;
    @ApiModelProperty(value = "优惠金额")
    private Long discountAmount;
    @ApiModelProperty(value = "创建时间")
    private java.util.Date createTime;
    @ApiModelProperty(value = "更新时间")
    private java.util.Date updateTime;
    @ApiModelProperty(value = "租户id")
    private Long tenantId;

    public static List<OrderDiscount> create(Order order) {
        return null;
    }
}
